<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/8
 * Time: 10:38
 */



if ($_POST['username']=='admin'&& $_POST['password']==888888){
    echo'登录成功!<br>';
}else{
    echo '用户名或密码错误请重新登录！<br>';
    die;
}
$token=md5($_POST['username'].$_POST['password'].time());
setcookie('Token',$token,time()+24*3600);

echo '<a href="user.php"> 进入用户中心</a>';